package com.yq.ylmall.vo.product;

import com.baomidou.mybatisplus.annotation.TableField;
import com.yq.ylmall.model.product.Category;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "商品分类返回")
public class CategoryVo {

    @ApiModelProperty(value = "分类ID")
    private Long id;

    @ApiModelProperty(value = "分类名称")
    private String name;

    @ApiModelProperty(value = "图片地址")
    private String imageUrl;

    @ApiModelProperty(value = "父分类id")
    private Long parentId;

    @ApiModelProperty(value = "是否显示[0：不显示，1：显示]")
    private Integer status;

    @ApiModelProperty(value = "排序")
    private Integer orderNum;

    // 下级列表
    @TableField(exist = false)
    private List<Category> children;

}
